package com.examplemartin.jpademo.pojo.admin;

import com.examplemartin.jpademo.pojo.po.UserPO;
import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;

import lombok.*;

/**
 * 后台数据库操作日志
 */


@EqualsAndHashCode(callSuper=true)
@Entity(name = "t_operator_log")
public class OperatorLogPO extends BaseEntity implements Serializable {


  @OneToOne
  @JoinColumn(name = "userid",referencedColumnName = "id")
  private UserPO user;

  private String content;

  public UserPO getUser() {
    return user;
  }

  public void setUser(UserPO user) {
    this.user = user;
  }

  public String getContent() {
    return content;
  }

  public void setContent(String content) {
    this.content = content;
  }


}
